<?php
	$this->helpers->htmlx->MenuText1(LANG_SYSTEM_ACCESS_LOGS, "view.gif");
	
	echo "<table class='grid ui-widget ui-widget-content' style = 'margin-top: 5px; '>";
	
	    //header
		echo "<tr class = 'ui-widget-header'>";
			$this->helpers->htmlx->td(ucfirst(LANG_TABLE_NAME), ' class = "gridHeader" style = "padding: 3px; " ');
			$this->helpers->htmlx->td(ucfirst(LANG_LOGGED), ' class = "gridHeader" style = "padding: 3px; " align = "center"');	 
			$this->helpers->htmlx->td(ucfirst(LANG_COMMENTED), ' class = "gridHeader" style = "padding: 3px; " align = "center"'); 	
	    echo "</tr>";

	    //tables list
	    $i = 1;
	    foreach ($this->data['accesses_logs'] as $access_logs)
	    {
            //row style
	    	$cellStyle = 'gridCell';
	    	
	    	echo "<tr class = 'gridRow'>";
	    	
	    	    //table name (translated)
	    		echo "<td class='$cellStyle' align='left'>";
		    		XHTML::Anchor('/system_tables_columns_logs/edit/'.$access_logs['system_table_id'], Language::Get(str_replace('LANG_', '', $access_logs['language_constant']), 'CAPITALIZE'));
		    	echo "</td>";
		    	
		    	//is logged
		    	echo "<td class='$cellStyle' align='center'>";
		    		XHTML::InputCheckbox('', 1, $access_logs['is_logged'], array('disabled' => 'disabled'));   		
		    	echo "</td>";
		    	
		    	//is commented
		    	echo "<td class='$cellStyle' align='center'>";
		    		XHTML::InputCheckbox('', 1, $access_logs['is_commented'], array('disabled' => 'disabled'));   		
		    	echo "</td>";
		    	 
	    	echo "</tr>";
	    	$i++;
	    }
	    
	echo "</table>";
?>